<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::namespace('Api')->group(
    static function () {
        Route::get('test', 'IndexController@index');
        Route::post('image-upload', 'IndexController@imageUpload');

        //图床
        Route::post('uploadtoken', 'CDNController@getuploadtoken');//获取token
        Route::post('uploadinfo', 'CDNController@getuploadinfo');//获取上传信息
        Route::get('cacherefresh', 'CDNController@refresh');//刷新缓存
    }
);


